package model

type UserToken struct {
	Token        string `json:"token" gorm:"type:varchar(255);comment:'Token'"`
	ExpiresAt    int    `json:"expires_at"`
	RefreshToken string `json:"refresh_token" gorm:"type:varchar(255);comment:'RefreshToken'"`
	Type         string `json:"type" gorm:"type:varchar(20);comment:'类型(admin user)'"`
	UserId       int    `json:"user_id" gorm:"type:int;comment:'用户ID'"`
}

func (UserToken) TableName() string {
	return "user_token"
}
